package com.deercrowing.takeaway.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 套餐菜品映射表(SetmealDish)表实体类
 *
 * @author guoyongxiang
 * @since 2024-08-22 11:07:21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_setmeal_dish")
public class SetmealDishEntity extends Model<SetmealDishEntity> {
    //ID，唯一标识    
    @TableId
    private Long id;
    //菜品标识    
    @TableField("dish_id")
    private Integer dishId;
    //套餐标识    
    @TableField("setmeal_id")
    private Integer setmealId;
    //份数    
    @TableField("copies")
    private Short copies;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    
}

